<%--
  Created by IntelliJ IDEA.
  User: Zhao
  Date: 2017/2/26
  Time: 20:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
  <head>
    <title>新浪新闻搜索</title>
  </head>
  <body>
  <form action="/indexs/search.do" method="post">
    <input type="text" name="title"/>
    <input type="submit">
  </form>
  <table>
    <c:forEach items="${newsList}" var="news">
      <tr>
        <td><a href="${news.href}">${news.title}</a></td>
      </tr>
    </c:forEach>
  </table>
  </body>
</html>
